xen/dt: Extend dt_device_match to possibly store data
authorJulien Grall <julien.grall@linaro.org>
Fri, 30 Jan 2015 18:49:18 +0000 (18:49 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 20 Feb 2015 14:01:02 +0000 (14:01 +0000)
commit100f2a606ad6b0f113229cf828ad5c4479a4f44b
tree30702c006a368cc743a5b58282fa76cf0c009237
parent62d4269554a15428cd73008b1e954ca9c803923f
xen/dt: Extend dt_device_match to possibly store data

Some drivers may want to configure differently the device depending on
the compatible string. For this purpose, add a new field in the
dt_device_match to store the data.

Also modify the return type of dt_match_node to return the matching
structure.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/platform.c
xen/common/device_tree.c
xen/include/xen/device_tree.h